From: A. Maitland Bottoms Date: Tue, 25 Feb 2025 01:17:13 +0000 (-0500) Subject: optional static apps X-Git-Tag: archive/raspbian/3.2.0-2+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=6af965add341670da5fc62e6d4c031f6cb3b35a4;p=volk.git optional static apps Forwarded: not-needed For Debian, build apps with static libs if ENABLE_STATIC_APPS. Gbp-Pq: Name optional-static-apps --- diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 98d002a..d73e282 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -42,7 +42,7 @@ if(${find_experimental}) endif() target_link_libraries(volk_profile PRIVATE std::filesystem) -if(ENABLE_STATIC_LIBS) +if(ENABLE_STATIC_LIBS AND ENABLE_STATIC_APPS) target_link_libraries(volk_profile PRIVATE volk_static) set_target_properties(volk_profile PROPERTIES LINK_FLAGS "-static") else() @@ -58,7 +58,7 @@ install( add_executable(volk-config-info volk-config-info.cc ${CMAKE_CURRENT_SOURCE_DIR}/volk_option_helpers.cc) -if(ENABLE_STATIC_LIBS) +if(ENABLE_STATIC_LIBS AND ENABLE_STATIC_APPS) target_link_libraries(volk-config-info volk_static) set_target_properties(volk-config-info PROPERTIES LINK_FLAGS "-static") else()